/* Copyright (C) 2011 clueless <clueless.mmopeon@gmail.com>
 *
 * This file is part of MMO Peon.
 *
 * MMO Peon is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * MMO Peon is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMO Peon.  If not, see <http://www.gnu.org/licenses/>.
 */
#include "application.h"
#include <wx/notebook.h>
#include "selectpanel.h"

IMPLEMENT_APP(MmoPeonApp)

bool MmoPeonApp::OnInit()
{
    MainFrame *mainFrame = new MainFrame( _("MMO Peon"), wxDefaultPosition, wxSize(500,300));
    mainFrame->Show(true);
    SetTopWindow(mainFrame);
    return true;
}

MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& size) : wxFrame( NULL, -1, title, pos, size )
{
    notebook = new wxNotebook(this, wxID_ANY);
    notebook->AddPage(new SelectionPanel(notebook), wxT("Selection"));
}
